package com.dmzapp.api.vo;

import java.util.Date;

public class IncomeRecord implements Comparable<IncomeRecord> {

    private String username;
    private String mac;
    private String deviceid;
    private String ip;
    private int serviceid;
    private int offer_type;
    private String packagename;
    private String income;
    private Date create_time;
    @Override
    public int compareTo(IncomeRecord arg0) {
        if (arg0.create_time.getTime() < this.create_time.getTime()) {
            return -1;
        } else {
            return 1;
        }
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getMac() {
        return mac;
    }
    public void setMac(String mac) {
        this.mac = mac;
    }
    public String getDeviceid() {
        return deviceid;
    }
    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }
    public String getIp() {
        return ip;
    }
    public void setIp(String ip) {
        this.ip = ip;
    }
    public int getServiceid() {
        return serviceid;
    }
    public void setServiceid(int serviceid) {
        this.serviceid = serviceid;
    }
    public String getPackagename() {
        return packagename;
    }
    public void setPackagename(String packagename) {
        this.packagename = packagename;
    }
    public String getIncome() {
        return income;
    }
    public void setIncome(String income) {
        this.income = income;
    }

	public int getOffer_type() {
		return offer_type;
	}

	public void setOffer_type(int offer_type) {
		this.offer_type = offer_type;
	}
 
}
